package com.study.design.model.createPattern.factory.factoryMethod;

import org.junit.Test;

/**
* @Name: Client
* @Description: 工厂方法模式测试类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-10 下午4:13:35 
* @Version: V1.0
 */
public class Client {
	
	/**
	* @Name: factoryMethod
	* @Description: 工厂方法模式测试方法
	* @Author: 李超	lc_jack@foxmail.com
	* @Version: V1.0
	* @CreateDate: 2017-2-10 下午4:13:50
	* @Parameters: 
	* @Return: void
	 */
	@Test
	public void factoryMethod() {
		Car audi = new AudiFactory().createCar() ;
		audi.run() ;
		Car byd = new BydFactory().createCar() ;
		byd.run() ;
	}

}
